
var vm = new Vue({
	el:'#dpLTE',
	data: {
		inBoundDetails: {
			id: '',
			name:'',
			specification:'',
			unit: '',
			manufacturer:'',
			quantity:'',
			unitPrice:'',
		},

	},
	methods : {
		setForm: function() {
			debugger;
			$.SetForm({
				url: '../../../inboundDetails/info?_' + $.now(),
		    	param: vm.inBoundDetails.id,
		    	success: function(data) {
		    		vm.inBoundDetails = data;

		    	}
			});
		},
		acceptClick: function() {
			if (!$('#form').Validform()) {

		        return false;
		    }

		    //$.ConfirmForm({
			$.SaveForm({
		    	url: '../../../inboundDetails/update?_' + $.now(),
		    	param: vm.inBoundDetails,
		    	success: function(data) {
		    		$.currentIframe().vm.load();

		    	},
		    });


		},
	}
})